//
//  ViewController.m
//  tableView头部视图缩放
//
//  Created by MyMac on 15/7/21.
//  Copyright (c) 2015年 MyMac. All rights reserved.
//

#import "ViewController.h"
#import "HeaderScaleViewController.h"
#import "UINavigationBar+BackgroundColor.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
  
    self.view.backgroundColor=[UIColor whiteColor];
    
    
    
    
}
#warning 上一个控制器的Dealloc方法后调，，所以除去上一个控制器设置的导航条的背景色在这里设置
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.navigationController.navigationBar lt_resetl];
    self.navigationController.navigationBar.barTintColor=[UIColor redColor];

}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    HeaderScaleViewController*header=[[HeaderScaleViewController alloc]init];
    [self.navigationController pushViewController:header animated:YES];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
